package com.swinw.asumall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * 封装网站首页传递的搜索参数
 */
@Data
public class SearchVo {
    private String keyword;//首页传递的关键字
    private Long catalog3Id;//三级分类ID

    /**
     * 销量排序
     * sort = saleCount_asc/desc
     * 价格排序
     * sort = skuPrice_asc/desc
     * 热度评分
     * sort = hotScore_asc/desc
     */
    private String sort; //排序条件

    /**
     * 过滤条件
     * hasStock(是否有货)、skuPrice(价格区间)、brandId、catakig3Id、attrs
     * hasStock=0/1
     * skuPrice=1_500/?_500/500_?
     * brandId=1
     * attrs=1_其他：安卓
     */
    private Integer hasStock;//是否只显示有货
    private String skuPrice;//价格区间查询
    private List<Long> brandId;//品牌ID
    private List<String> attrs;//销售属性

    private Integer pageNum = 1;//页码

}
